/**
 * 
 * @param {Object} url
 * @param {Object} id_names  [['id_u_name','userName'],['id_u_password','passWord']]
 * @param {Object} height
 * @param {Object} width
 */
function showSelect(key,id_names,height,width,url){
	pids= new StringBuilder();
	if(!url){
		pids.Append(base);
		pids.Append("/admin/commonselect.x?op=find");
	}else{
		pids.Append(url);
	}
	pids.Append("&key=");
	pids.Append(key);
	if(id_names){
		for(i=0;i<id_names.length;i++){
			pids.Append("&pids=");
			pids.Append(id_names[i][0]);
			pids.Append("|");
			pids.Append(id_names[i][1]);
		}
	}else{
		pids.Append("&pids=|");
	}
	
	if(!height)height=500;
	if(!width)width=600;
	window.showModalDialog(pids.toString(),document,"dialogwidth:"+width+"px;dialogheight:"+height+"px");
}
function StringBuilder(str){
    this.tmp = new Array();        
}
StringBuilder.prototype.Append= function(value)
{
    this.tmp.push(value);
    return this;
}
StringBuilder.prototype.Clear = function()
{
    tmp.length=1;
}
StringBuilder.prototype.toString = function(){
    return this.tmp.join('');
}
